package cn.bugio.task11.controller;

import cn.bugio.task11.po.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class UserController {

	@RequestMapping("/toRegister")
	public String toRegister( ) {
	    return "register";
	}
	/**
	 * 接收用户注册信息
	 */
	@RequestMapping("/registerUser")
	public String registerUser(User user) {
	    String username = user.getUsername();
		String password = user.getPassword();
	    System.out.println("username "+username);
	    System.out.println("password "+password);
	    return "success";
	}


}
